package com.colorfruit.admin.business.dao;

import com.colorfruit.admin.pojo.entity.StatisticProduct;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StatisticProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StatisticProduct record);

    int insertSelective(StatisticProduct record);

    StatisticProduct selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StatisticProduct record);

    int updateByPrimaryKey(StatisticProduct record);

    List<StatisticProduct> selectProductWithHotByGlobal(@Param("globalControlId")Long globalControlId);

    List<StatisticProduct> selectProductWithHot(@Param("theDayBegin")Date theDayBegin,
                                                @Param("theDayEnd") Date theDayEnd);
}